package com.yuanqi.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanqi.Common.Pojo.Dto.PostDto;
import com.yuanqi.Common.Pojo.Vo.PostDetail;
import com.yuanqi.Common.Pojo.Vo.PostVo;
import com.yuanqi.Common.Pojo.entity.Image;
import com.yuanqi.Common.Pojo.entity.Post;
import com.yuanqi.Common.Pojo.entity.PostClass;

import java.util.List;

public interface PostService extends IService<Post> {
    List<PostClass> getList();

    Image SaveImage(String upload);

    void publish(PostDto postdto);

    PostDetail getDetail(Long id);

    List<PostVo> getPostByClassId(Long id, Integer current,Long UserId);

    List<PostVo> getPostByUserId(Long userid, Integer current,Long loginUserId);

    List<PostVo> getPostByLoginUser();

    List<PostVo> SearchPost(PostDto postDto);

    List<PostVo> getconcernpost(Integer current);
}
